package com.lkdont.android.media.opengl

import android.opengl.GLES20

/**
 * 定点着色器
 *
 * @author lqd
 */
class FrameVertexShader : GLShader() {

    override val type: Int
        get() = GLES20.GL_VERTEX_SHADER

    override val shaderCode: String
        get() = """
uniform mat4 uMVPMatrix;
uniform mat4 uTexMatrix;
attribute vec4 aPosition;
attribute vec4 aTextureCoord;
varying vec2 vTextureCoord;
void main() {
    gl_Position = uMVPMatrix * aPosition;
    vTextureCoord = (uTexMatrix * aTextureCoord).xy;
}
"""
}